package com.glsc.ngateway.common.base.domain.mysql.opmanage.report.subscribe;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author: qiyr
 * @date: 2022/6/2 10:29
 * @description: 报表可配置参数实体类主键
 */
public class ReportParamConfigId implements Serializable {

    private static final long serialVersionUID = 1L;
    private String reportId;
    private String paramKey;

    public ReportParamConfigId() {
        super();
    }

    public ReportParamConfigId(String reportId, String paramKey) {
        super();
        this.reportId = reportId;
        this.paramKey = paramKey;
    }

    public String getReportId() {
        return reportId;
    }

    public void setReportId(String reportId) {
        this.reportId = reportId;
    }

    public String getParamKey() {
        return paramKey;
    }

    public void setParamKey(String paramKey) {
        this.paramKey = paramKey;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        ReportParamConfigId that = (ReportParamConfigId) o;
        return Objects.equals(reportId, that.reportId) && Objects.equals(paramKey, that.paramKey);
    }

    @Override
    public int hashCode() {
        return Objects.hash(reportId, paramKey);
    }
}
